<UserControl x:Class="WPFExcelReport.UQPYM1"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
              xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
            Loaded="TV_Loaded"
             Name="TV"
                    Background="White"   
      >
    <UserControl.Resources>
         <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTConverter x:Key="not"/> 
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </UserControl.Resources> 
    <StackPanel>
        <WrapPanel>
            <Grid Grid.Row="0" Margin="0,5,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=回潮率:}}"></TextBlock>
            <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y001}" Width="60" />
            </Grid>
            <Grid  Grid.Row="1" Margin="5,5,0,0" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=含杂率:}}"></TextBlock>
                <ex:NumericBox  Grid.Column="1"  MaxLength="10" DecimalPlaces="2"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y002}" Width="60" />
            </Grid>

            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=马克隆值:}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="2"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y003}" Width="60" />
            </Grid>

            <Grid  Grid.Row="1" Margin="5,5,0,0" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="190"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=断裂比强度（cN/tex）:}}"></TextBlock>
                <ex:NumericBox  Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y004}" Width="60" />
            </Grid>
            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="180"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=上半部平均长度(mm):}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="2"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y005}" Width="60" />
            </Grid>
        </WrapPanel>
        <WrapPanel> 
            <Grid  Grid.Row="1" Margin="0,5,0,0" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="120"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=整齐度指数:}}"></TextBlock>
                <ex:NumericBox  Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y006}" Width="60" />
            </Grid>
            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=短纤指数（%）:}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y007}" Width="60" />
            </Grid>
            <Grid  Grid.Row="1" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=纺纱一致性参数:}}"></TextBlock>
                <ex:NumericBox  Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y008}" Width="60" />
            </Grid>

            <Grid Grid.Row="0" Margin="5,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="190"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=棉结（粒/g）:}}"></TextBlock>
                <ex:NumericBox Grid.Column="1"  MaxLength="10" DecimalPlaces="1"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y009}" Width="60" />
            </Grid>
       
          
        </WrapPanel>
        <WrapPanel>
            <Grid  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"  Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=备注:}}"></TextBlock>
                <ex:TXT72 Grid.Column="1" MaxLength="10" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                                    Text="{Binding Y010, Converter={StaticResource gb2312}}" Width="500" />


            </Grid>
        </WrapPanel> 
    </StackPanel>
   
</UserControl>
